package controllers.logs;

import hprose.HproseClinetService;

import java.util.HashMap;
import java.util.Map;

import utils.convert.Convert;
import utils.logs.LogsUtils;

import com.alibaba.fastjson.JSONObject;

import component.UserBis;
import constants.APIConstants;
import constants.Constants;
import controllers.common.filter.BaseFilter;

public class LogsAction extends BaseFilter {
	/**
	 * 日志管理
	* @Title: index 
	* @Description: TODO(这里用一句话描述这个方法的作用) 
	* @param     设定文件 
	* @return void    返回类型 
	* @author chasel 641243343@qq.com   
	* @throws
	 */
	public static void index() {
		Map<String, Object> map = new HashMap<String, Object>();
		Object[] arguments = new Object[] { map };
		map.put("customer_id", UserBis.currUser());
		map.put("isPage", "1");
		map.put("currPage", params.get("currPage"));
		map.put("pageSize", params.get("pageSize"));
		map.put("type", params.get("type"));
		map.put("userName", params.get("userName"));
		map.put("realName", params.get("realName"));
		map.put("start_date", params.get("start_date"));
		map.put("end_date", params.get("end_date"));
		String res = HproseClinetService.synCall(APIConstants.LOGSMI_GETLOGS, arguments,APIConstants.CUSTOMER_HOST, APIConstants.CUSTOMER_PORT);
		JSONObject json = JSONObject.parseObject(res);
		render(json);
	}
	 
}
